package com.caigou.mapper.cms;

import com.caigou.bean.cms.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer roleId);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List<Role> findAllRoles();

    Role findRoleByRoleCode(String roleCode);

    List<Role> findRoleByRoleCodes(@Param("roleCodes") List<String> roleCodes);

    Integer deleteByRoleCode(String roleCode);

    Integer updateRoleNameByRoleCode(String roleCode, String roleName);
}
